//
//  DetectViewController.h
//  yifengSDK
//
//  Created by 赵伟 on 2017/7/16.
//  Copyright © 2017年 zhaowei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <CoreVideo/CoreVideo.h>
#import <CoreMedia/CoreMedia.h>

@interface DetectViewController : UIViewController<AVCaptureVideoDataOutputSampleBufferDelegate>{
    AVCaptureSession *_captureSession;
    UIImageView *_imageView;
    CALayer *_customLayer;
    AVCaptureVideoPreviewLayer *_prevLayer;
}

@property (nonatomic, strong) void(^resultBlock)(NSDictionary *);
@property (nonatomic, strong) void(^backBlock)(NSString *);
@property (nonatomic, strong) void(^takepicBlock)(UIImage *);
@property (nonatomic,copy) NSString * strName;
@property (nonatomic,copy) NSString * strPassportNumber;

-(void)setDetect:(NSString *)_cameratype;

-(void)type:(NSString *)_type inputorderNo:(NSString *)_inputorderNo;

@property (nonatomic, retain) AVCaptureSession *captureSession;
@property (nonatomic, retain) UIImageView *imageView;
@property (nonatomic, retain) CALayer *customLayer;
@property (nonatomic, retain) AVCaptureVideoPreviewLayer *prevLayer;
- (void)initCapture;
@end

